﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GoodsInvoicing.Model.UserRole;

namespace GoodsInvoicing.Views.View
{
    public interface IRoleListForm
    {
        #region 事件
        /// <summary>
        /// 初始化列表数据集
        /// </summary>
        event EventHandler<EventArgs> RoleListFormLoad;

        /// <summary>
        /// 查询用户名事件
        /// </summary>
        event EventHandler<EventArgs> SearchButtonClick;

        /// <summary>
        /// 删除用户
        /// </summary>
        event EventHandler<EventArgs> RoleDeleteClick;
        #endregion

        #region 属性
        IList<GI_Role> RoleList { get; set; }

        string SearchRoleName { get; set; }//所要查询的用户名

        int DeleteRoleID { get; set; }//所要删除用户ID
        #endregion

        #region 方法
        /// <summary>
        /// 显示用户新增Form
        /// </summary>
        void ShowRoleAddForm();

        /// <summary>
        /// 显示用户保存Form
        /// </summary>
        void ShowRoleSaveForm();
        #endregion
    }
}
